package com.qike.baoxiu.mapper;

import com.qike.baoxiu.pojo.Knowledge;
import com.qike.baoxiu.pojo.KnowledgeExample;
import com.qike.baoxiu.pojo.KnowledgeWithBLOBs;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface KnowledgeMapper {
    int countByExample(KnowledgeExample example);

    int deleteByExample(KnowledgeExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(KnowledgeWithBLOBs record);

    int insertSelective(KnowledgeWithBLOBs record);
    List<KnowledgeWithBLOBs> selectByKeyWord(String keyWord);

    List<KnowledgeWithBLOBs> selectByExampleWithBLOBs(KnowledgeExample example);

    List<Knowledge> selectByExample(KnowledgeExample example);

    KnowledgeWithBLOBs selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") KnowledgeWithBLOBs record, @Param("example") KnowledgeExample example);

    int updateByExampleWithBLOBs(@Param("record") KnowledgeWithBLOBs record, @Param("example") KnowledgeExample example);

    int updateByExample(@Param("record") Knowledge record, @Param("example") KnowledgeExample example);

    int updateByPrimaryKeySelective(KnowledgeWithBLOBs record);

    int updateByPrimaryKeyWithBLOBs(KnowledgeWithBLOBs record);

    int updateByPrimaryKey(Knowledge record);
}